<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

echo form_open('pages/new_page');

//dump($categories);

//dump(set_value('page_section'));

?>	<div>
			<label for="page_title"><?=lang('page_title'); ?></label>
			<?php echo form_input('page_title', set_value('page_title'), 'id="page_title"'); ?>
		</div>
		<div>
			<label for="page_section"><?=lang('page_section'); ?></label>
			<?php echo form_dropdown('page_section', $sections, set_value('page_section', 0), 'id="page_section"'); ?>
			<?php /*echo anchor('pages/new_page', lang('page_load_categs'), 'id="load_categs"'); */?>
			<?php echo form_submit('load_categs', lang('page_load_categs')); ?>
		</div>
		<div>
			<label for="page_category"><?=lang('page_category'); ?></label>
			<?php echo form_dropdown('page_category', $categories, set_value('page_category', 0), 'id="page_category"'); ?>
		</div>
		<div>
			<label for="page_intro"><?=lang('page_intro'); ?></label>
			<?php echo form_textarea('page_intro', set_value('page_intro'), 'id="page_intro"'); ?>
		</div>
		<div>
			<label for="page_body"><?=lang('page_body'); ?></label>
			<?php echo form_textarea('page_body', set_value('page_body'), 'id="page_body"'); ?>
		</div>
		<div>
			<label for="page_status"><?=lang('page_status'); ?></label>
			<?php echo form_dropdown('page_status', $status, '0', 'id="page_status"'); ?>
		</div>
		<div>
			<?php echo form_submit('save', lang('page_save')); ?>
			<?php echo form_submit('cancel', lang('page_cancel')); ?>
		</div>
		<!-- <input type="submit" name="save" value="<?=lang('page_save'); ?>" />
		<input type="submit" name="cancel" value="<?=lang('page_cancel'); ?>" /> -->
<?php 
echo form_close();

/* End of file page-form.php */
/* Location: ./system/application/views/default/page-form.php */
